package net.pulseproject.router.app.model;

import net.pulseproject.commons.misc.binder.FieldDescriptor;


public enum ModelField implements FieldDescriptor<Model> {
	
	CONFIGURATION_TEXT() {
		@Override
		public Object getValueOf(final Model model) {
			return model.getConfigurationText();
		}
	},
	ROUTING_ACTIVE() {
		@Override
		public Object getValueOf(final Model model) {
			return model.isRoutingActive();
		}
	},
//	PORT_FILTER() {
//		@Override
//		public Object getValueOf(final Model model) {
//			return model.getPortFilter();
//		}
//	},
	ACTIVE_OUTGOING_SOCKETS() {
		@Override
		public Object getValueOf(final Model model) {
			return model.getActiveOutgoingSockets();
		}
	},
	CURRENT_SOLOED_SOCKET {
		@Override
		public Object getValueOf(final Model model) {
			return model.getCurrentSoloedSocket();
		}
	},
	AVAILABLE_DEVICES {
		@Override
		public Object getValueOf(final Model model) {
			return model.getAvailableDevices();
		}
	};
	
}
